$mainColor: #F48888;
$transitionTime: 0.5s;

* {
    outline: none;
}

a {
    color: black;
    text-decoration: none;
}

html,
body,
.main {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.main {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent url("../images/forget.jpg") no-repeat center center;
    background-size: cover;
}

// 重置密码盒子样式
.forget-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 800px;
    height: 600px;
    background-color: transparent;
    border-radius: 8px;
    box-shadow: 0px 0px 8px black;

    // 重置密码标题样式
    .forget-title {
        font-weight: 100;
        font-size: 42px;
        color: black;
    }

    // 重置密码表单样式
    .forget-form {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 600px;

        :nth-child(n) {
            margin-bottom: 24px;
        }

        // 输入框样式
        input {
            width: calc(100% - 40px);
            height: 50px;
            padding: 0px 10px;
            padding-right: 40px;
            font-size: 20px;
            border: 1px solid gainsboro;
            border-radius: 6px;
            transition: border $transitionTime;

            &:focus {
                border: 1px solid $mainColor;
            }
        }

        // 用户名输入框样式
        .username {
            background: white url("../images/user.png") no-repeat;
            background-size: 32px;
            background-position: 570px center;
        }

        // 密码输入框样式
        .password {
            background: white url("../images/password.png") no-repeat;
            background-size: 32px;
            background-position: 570px center;
        }

        // 手机输入框样式
        .phone {
            background: white url("../images/phone.png") no-repeat;
            background-size: 32px;
            background-position: 570px center;
        }

        // 获取验证码块样式
        .code-pane {
            display: flex;
            position: relative;
            width: calc(100% + 12px);

            // 验证码输入框样式
            .code {
                width: calc(100% - 170px);
                padding-right: 170px;
                background: white url("../images/message.png") no-repeat;
                background-size: 32px;
                background-position: 570px center;
            }

            // 验证码按钮样式
            .code-button {
                display: block;
                position: absolute;
                right: 50px;
                width: 120px;
                background-color: transparent;
                border: none;
                cursor: pointer;
                transition: color $transitionTime;

                &:hover {
                    color: $mainColor;
                }

                &:disabled {
                    color: rgb(200, 200, 200);
                }
            }
        }

        // 链接块样式
        .link {
            display: flex;
            justify-content: space-between;
            width: 100%;

            a {
                font-size: 24px;
                transition: color $transitionTime;

                &:hover {
                    color: $mainColor;
                }
            }
        }

        // 重置密码按钮样式
        .reset-button {
            padding: 0;
            width: 200px;
            color: white;
            background-color: $mainColor;
            border: 1px solid $mainColor;
            cursor: pointer;
            transition: opacity $transitionTime;

            &:hover {
                opacity: 0.8;
            }
        }
    }
}